package com.wordlearning.app.service;

import com.wordlearning.app.entity.StudyPlan;

import java.util.List;
import java.util.Optional;

public interface StudyPlanService {

    StudyPlan createStudyPlan(StudyPlan studyPlan);
    List<StudyPlan> getAllStudyPlans();
    List<StudyPlan> getStudyPlansByUserId(Long userId);
    List<StudyPlan> getActiveStudyPlansByUserId(Long userId);
    Optional<StudyPlan> getStudyPlanById(Long id);
    StudyPlan updateStudyPlan(Long id, StudyPlan studyPlan);
    void deleteStudyPlan(Long id);
    StudyPlan completeDailyTask(Long studyPlanId, Integer completedCount);
    StudyPlan changeStatus(Long studyPlanId, String status);

}